import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/common/Home';
import Dashboard from '@/components/page/Dashboard';
import doctorLog from '@/components/page/DoctorLog';
import editeDoctor from '@/components/page/editeDoctor';
import orderGrade from '@/components/page/orderGrade';
import assigAddresses from '@/components/page/assigAddresses';

Vue.use(Router)

export default new Router({
  mode: 'history',
  base:'_dirname',
  routes: [
    {
      path: '/',
      component: Home,
       children:[
         {
           path:'',
           component: Dashboard
         },{
           path:'/Dashboard',
           component:Dashboard
         },
         {
          path:'/doctorLog',
          component:doctorLog
        },
        {
          path:'/editeDoctor',
          component:editeDoctor
        },
        {
          path:'/orderGrade',
          component:orderGrade
        },
        {
          path:'/assigAddresses',
          component:assigAddresses
        }
       ]
    }
  ]
})
